package day0222_2;

public class F1 {
    public static void main(String[] args) {
        //byte short int long float double char boolean
        byte b1=-128;
        byte b2= 127;
        System.out.println(b1);
        System.out.println(b2);
        System.out.println(b1 +","+b2);

        short s1=-32768;
        short s2= 32767;
        System.out.println(s1 +","+s2);

        int i1=-2147483648;
        int i2= 2147483647;
        System.out.println(i1 +","+i2);

        long g1= (long)(Math.pow(-2,63));
        long g2= (long)(Math.pow(2,63)-1);
        System.out.println(g1+","+g2);

        //float double char boolea
        float  f1=4.6F;//float数据必须加字母F/f

        double d1=3.14;

        char c1='A';  //字符类型的数据必须用单引号包含一个符号(必须是一个符号)
        char c2=' ';
        char c3='\''; //转义字符
        char c4='\t'; //转义字符 \\四个空格
        char c5='\n'; //转义字符
        System.out.println(c2 + "," + c1 + "," + c3+","+c5+","+c4);

        boolean rs1=  d1>0;
        System.out.println(rs1);//true


        boolean rs2=  0<d1  &&   d1<100;
        System.out.println(rs2);

        // ||或者： 两个条件满足一条，结果就是成立。
        boolean rs3=  d1<0  ||  100<d1;
        System.out.println(rs3);


        System.out.println(5%2);  //求余数

    }
}
